/** 当路由表太长时，可以将其拆分为小模块 **/

import Layout from 'views/layout/layout'

const messageInteractRouter = {
  path: '/messageInteract',
  component: Layout,
  redirect: 'noredirect',
  name: 'messageInteract',
  meta: {
    title: 'messageInteract',
    icon: 'messageInteract',
    roles: ['demo']
  },
  children: [
    {
      path: 'siteMessage',
      component: () => import('pages/messageInteract/siteMessage/index'),
      redirect: 'noredirect',
      name: 'siteMessage',
      meta: {
        title: 'siteMessage'
      },
      children: [
        {
          path: 'buyerPrivateLetter',
          component: () => import('pages/messageInteract/siteMessage/buyerPrivateLetter'),
          name: 'buyerPrivateLetter',
          meta: {
            title: 'buyerPrivateLetter'
          }
        },
        {
          path: 'operationNotice',
          component: () => import('pages/messageInteract/siteMessage/operationNotice'),
          name: 'operationNotice',
          meta: {
            title: 'operationNotice'
          }
        },
        {
          path: 'sendToOperators',
          component: () => import('pages/messageInteract/siteMessage/sendToOperators'),
          name: 'sendToOperators',
          meta: {
            title: 'sendToOperators'
          }
        }
      ]
    }
  ]
}

export default messageInteractRouter